package com.jarvis.zeng.design.pattern.filter.datapermission;

/**
 * 类功能说明:   告警消息过滤器
 */
public abstract class IMessageFilter implements Comparable<IMessageFilter> {
    public int priority(){
        return 0;
    }
    public abstract boolean doFilter(Message message);

    public int compareTo(IMessageFilter messageFilter){
        return priority()-messageFilter.priority();
    }
}
